import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import * as echarts from 'echarts';


import vueParticles from "vue-particles";
import Vcomp from "./components/index"; 

import '@/assets/styles/base.scss'
import '@/assets/styles/common.scss'
// import '@/assets/iconfont/iconfont.css'
import ElementUI from "element-ui";
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI);
Vue.use(vueParticles);
Vue.use(Vcomp);

Vue.prototype.$echarts = echarts
Vue.config.productionTip = false;

// Vue.prototype.$Toast = Toast;

router.beforeEach((to, from, next) => {
  if (to.meta.title) {
    document.title = to.meta.title;
  }
  next();
});

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
